<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>体育与健康课程管理系统</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/public/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/public/css/main.css"/>
    <link href="${pageContext.request.contextPath}/public/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <script type="text/javascript" src="${pageContext.request.contextPath}/public/js/libs/modernizr.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/public/js/jquery-3.2.1.min.js"></script>
    <script src="${pageContext.request.contextPath}/public/js/layer/layer.js"></script>
    <script src="${pageContext.request.contextPath}/public/laydate/laydate.dev.js"></script>
</head>
<body>
<div class="container clearfix" style="width:100%">
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list" style="background:#fff; border:0px"><i class="icon-font"></i>修改系统基本参数</div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form  id="myform">
                    <table class="insert-tab" width="100%">
                        <tbody>   
                        <c:forEach items="${data }" var="v">
                            <tr>
                                <th><i class="require-red">*</i>${v.systemConfigComment }：</th>
                                <td>
                                    <input class="common-text required" id="title" name="systemConfigValue" size="85" value="${v.systemConfigValue } " onchange="upd(${v.systemConfigId},this.value)" style="width:300px;height:32px" type="text">
                                </td>
                            </tr>
                            </c:forEach>
                        </tbody></table>
                </form>
            </div>
        </div>

    </div>
    <!--/main-->
</div>
</body>
<script type="text/javascript">
function upd(id,value)
{
	$.post("${pageContext.request.contextPath}/jwc/system/updatesystem.action",{id:id,value:value},function(returndata){
		if(returndata.code==1)
			layer.msg(returndata.message, { offset: ['0px', '40%'], icon:6,time:1000});  
	});
}

</script>
</html>